import 'package:flutter/material.dart';
import 'package:flutter_shopcar_test/page/home_page/home_page_view.dart';
import 'package:flutter_shopcar_test/router.dart';
import 'package:get/get.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      initialRoute: RouterName.homePage,
      getPages: RouterPage.list,
      theme: ThemeData(
        primarySwatch: Colors.blue,
        highlightColor: Colors.transparent,
        splashColor: Colors.transparent,
        useMaterial3: true,
      ),
      builder: (BuildContext context, Widget? child) {
        return child ?? HomePagePage();
      },
    );
  }
}